package cc.mrbird.febs.accounting.Constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class CompanyConstant {
    public static Integer companyType;

    public static String companyName ;

    @Value(value = "${application.companyType}")
    public void setCompanyType(Integer companyType) {
        CompanyConstant.companyType = companyType;
    }

    @Value(value = "${application.companyType}")
    public void setCompanyName(Integer companyType) {
        CompanyConstant.companyName = companyType == 1 ? "拓天" : "海博";
    }
}
